$(function() {
    let discountUl = 0
    let brandUl = 0
    let ProductList = 0
    let priceUl = 0

    $(".ProductList").click(function() {
        if (ProductList == 0) {
            $(".ProductListBox").stop().slideUp();
            ProductList = 1
        } else {
            $(".ProductListBox").stop().slideDown();
            ProductList = 0
        }
    })
    $(".discountUl").click(function() {
        if (discountUl == 0) {
            $(".discountBox").stop().slideUp();
            discountUl = 1
        } else {
            $(".discountBox").stop().slideDown();
            discountUl = 0
        }
    })
    $(".brandUl").click(function() {
        console.log(1);
        if (brandUl == 0) {
            $(".brandBox").stop().slideUp();
            brandUl = 1
        } else {
            $(".brandBox").stop().slideDown();
            brandUl = 0
        }
    })
    $(".priceUl").click(function() {
        console.log(1);
        if (priceUl == 1) {
            $(".priceBox").stop().slideUp();
            priceUl = 0
        } else {
            $(".priceBox").stop().slideDown();
            priceUl = 1
        }
    })
})